/*
 * Copyright (c) 2015 elion. All Rights Reserved.
 */
package com.guoyu.project.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.guoyu.project.model.Attachment;


@Repository
public interface AttachmentDao {

    /**
     * 保存实体
     *
     * @param
     */
    public void save(Attachment attachment);

    /**
     * 更新实体
     *
     * @param 
     */
    public void update(Attachment attachment);

    /**
     * 删除实体
     *
     * @param 
     */
    public void deleteById(Integer attachment_id);

    /**
     * 根据id获取实体
     *
     * @param 
     * @return
     */
    public Attachment queryById(Integer attachment_id);

    /**
     * 根据条件获取记录总数
     *
     * @param params
     * @return
     */
    public int queryAttachmentCount(Map<String, Object> params);

    /**
     * 根据条件获取分页查询
     *
     * @param params
     * @return
     */
    public List<Attachment> queryAllAttachment(Map<String, Object> params);

}